package example.service.impl;

import example.common.Result;
import example.entity.Level;
import example.mapper.LevelMapper;
import example.service.ILevelService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LevelServiceImpl implements ILevelService {

    @Resource
    private LevelMapper levelMapper;

    @Override
    public Result getLevelList() {
        List<Level> levelList = levelMapper.listLevel();
        return Result.ok(levelList);
    }
}
